import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    name:'Main',
    redirect:'/home',
    component:()=>import("@/views/Main.vue"),
    children:[{
      path:'/home',
      name:'Home',
      component:()=>import('@/views/Home.vue')
    },
    {
      path:'/shops/shop_list',
      name:'Shoplist',
      component:()=>import('@/views/Shops/shop_list.vue')
    },
    {
      path:'/shops/shop_approve',
      name:'Shopapprove',
      component:()=>import('@/views/Shops/shop_approve.vue')
    },
    {
      path:'/shops/assistant_list',
      name:'Shopassistantlist',
      component:()=>import('@/views/Shops/assistant_list.vue')
    },
    {
      path:'/shops/pro_category',
      name:'Shopprocategory',
      component:()=>import('@/views/Shops/pro_category.vue')
    },
    {
      path:'/shops/pro_list',
      name:'Shopprolist',
      component:()=>import('@/views/Shops/pro_list.vue')
    }
    
  ]
  }
 
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
